package com.ruoyi.energy.mapper;

import com.ruoyi.energy.domain.MjPermissionDevice;

import java.util.List;

/**
 * 门禁权限设备Mapper接口
 *
 * @author cjie
 * @date 2021-08-02
 */
public interface MjPermissionDeviceMapper {
    /**
     * 查询门禁权限设备
     *
     * @param id 门禁权限设备ID
     * @return 门禁权限设备
     */
     MjPermissionDevice selectMjPermissionDeviceById(String id);

    /**
     * 查询门禁权限设备列表
     *
     * @param mjPermissionDevice 门禁权限设备
     * @return 门禁权限设备集合
     */
     List<MjPermissionDevice> selectMjPermissionDeviceList(MjPermissionDevice mjPermissionDevice);

    /**
     * 新增门禁权限设备
     *
     * @param mjPermissionDevice 门禁权限设备
     * @return 结果
     */
     int insertMjPermissionDevice(MjPermissionDevice mjPermissionDevice);

    /**
     * 修改门禁权限设备
     *
     * @param mjPermissionDevice 门禁权限设备
     * @return 结果
     */
     int updateMjPermissionDevice(MjPermissionDevice mjPermissionDevice);

    /**
     * 通过门禁权限Id删除
     * @param permissionId
     */
    void deleteByPermissionId(String permissionId);

    /**
     * 通过门禁权限ID查询对应设备ID
     * @param permissionId
     * @return
     */
    List<String> selectDeviceIdByPermissionId(String permissionId);
}
